<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <f:view locale="#{localeBean.locale}">    
        <h:head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Meu Sistema</title>
            <style type="text/css">
                body {background-color: #E6E6FA; font-size: 12px}            
            </style> 
        </h:head>
        <h:body>        
            <div align="center">
                <p:layout style="min-width:1020px;max-width:1020px;min-height:600px">                
                    <p:layoutUnit position="north" size="160" >  
                        <h:graphicImage url="/Imagens/DenunciaII.jpg" />                    
                    </p:layoutUnit>

                    <p:layoutUnit position="west" size="220">  
                        <ui:insert name="menu">
                            <h:form>
                                <p:menu style="width: 200px">                                
                                    <p:submenu styleClass="submenu" label="#{msgs['menu.menu']}">
                                    </p:submenu>    
                                    <p:menuitem styleClass="menuitem" value="#{msgs['menu.inicio']}" icon="ui-icon-home" action="/Mapa"/>
                                    <p:menuitem styleClass="menuitem" value="#{msgs['menu.entrar']}" icon="ui-icon-contact" />                               
                                    <p:menuitem value="#{msgs['menu.pesquisar']}" icon="ui-icon-search" action="/Mapa"/>
                                    <p:menuitem value="#{msgs['menu.cadastroUsur']}" icon="ui-icon-contact" action="/cadastroLogin"/>
                                    <p:menuitem value="#{msgs['menu.consProtocolo']}" icon="ui-icon-script" />
                                    <p:menuitem value="#{msgs['menu.consProtocolo']}" icon="ui-icon-script" />


                                </p:menu>                            
                            </h:form>
                        </ui:insert>
                    </p:layoutUnit>  
                    <p:layoutUnit position="center">
                        <h:panelGrid columns="1" columnClasses="alignLeft" style="vertical-align: top">
                            <h:form id="menuForm2">
                                <h:panelGrid rowClasses="rowRoxo" columns="2" styleClass="tabelaRich800"
                                             columnClasses="alignLeft, alignRight" >
                                    <h:panelGrid columns="2" width="290" columnClasses="alignLeft, alignLeft" >
                                        <h:outputText value="#{msgs['header.escolhaIdioma']}" styleClass="titulosTabelas" />

                                        <p:selectOneMenu value="#{localeBean.locale}"
                                                         valueChangeListener="#{localeBean.changeLocale}"
                                                         onchange="this.form.submit()">
                                            <f:selectItems value="#{localeBean.localeList}" />
                                        </p:selectOneMenu>
                                    </h:panelGrid>                                    
                                </h:panelGrid>
                            </h:form>                            
                        </h:panelGrid>
                        <ui:insert name="centro">                        

                        </ui:insert>

                    </p:layoutUnit>  
                </p:layout>  
            </div>
        </h:body>
    </f:view>    
</html>
